package org.example.model;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Collections;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class PageResult {

    /**
     * 总记录数
     */
    @JsonProperty("total_record")
    private Long totalRecord = 0l;

    /**
     * 总页数
     */
    @JsonProperty("total_page")
    private Long totalPage = 0l;

    /**
     * 数据
     */
    @JsonProperty("current_data")
    private List<?> currentData = Collections.emptyList();

}
